home *** CD-ROM | disk | FTP | other *** search
- Path: chewy.vcx.net!usenet
- From: Bruce Arnold <barnold@vcx.net>
- Newsgroups: comp.lang.c
- Subject: Re: Reading a line from a file
- Date: Thu, 15 Feb 1996 22:20:03 -0800
- Organization: Sprint United Telephone/Eastern - Internet @ccess
- Message-ID: <31242213.3846@vcx.net>
- References: <4ft5hu$ns6@coranto.ucs.mun.ca>
- NNTP-Posting-Host: y-wing-2a-32.tatooine.vcx.net
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0b5 (Win16; I)
-
- > I have a file with several lines of data in the following format:
- >
- > "123456789","Mr","David","Pierce","Memorial University of NF"
-
- Use the standard library routine, 'strtok()' to parse out the tokens
- using ',' as a delimiter. Then strip the quotes manually.
- ...Bruce
-